@var spaceCss = "";
@var btnType = "";


@if(isEmpty(space)){
@   spaceCss = "";
@}else{
@   spaceCss = "button-margin";
@}
@if(isEmpty(btnCss)){
@   btnType = "primary";
@}else{
@   btnType = btnCss;
@}




<script>
    //弹出对话框
    var lookUp =  {
        layerIndex : -1
    }

    lookUp.open=function(){

        var index = layer.open({
            type: 2,
            area: ['700px', '600px'],
            fixed: false, //不固定
            maxmin: true,
            content: Feng.ctxPath+'/tag/lookUp?dataUrl=${dataUrl}&fields=${fields}&fieldsName=${fieldsName}&paginationType=${paginationType!}&muti=${muti}&id=${id}',
            end:function(){
                if($("#${id}Val").val()==""){
                    return;
                }
                ${callback!}
            }
        });
        lookUp.layerIndex=index;



    }
</script>

<div class="input-group">
    <div class="input-group-btn">
        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle"
                type="button">${name}
        </button>
    </div>
    <input type="text" class="form-control" id="${id}" name="${id}" placeholder="${placeholder!}"  readonly onclick="lookUp.open()">
</div>
<input type="hidden" id="${id}Val" value="">